package com.oracle.team.domain;

import com.oracle.team.service.Status;

public class Designer extends Programmer {
	private double bonus;

	public Designer(int id, String name, int age, double salary, int memberId, Status status, Equipment equipment,
			double bonus) {
		super(id, name, age, salary, memberId, status, equipment);
		this.bonus = bonus;
	}

	public double getBonus() {
		return bonus;
	}
	public void setBonus(double bonus) {
		this.bonus = bonus;
	}
	
	//覆盖重写
	//员工列表方法
	/*public String getDetails() {
		return getId() +"\t" + getName() +"\t" + getAge() +"\t" + getSalary() +"\t" +"设计师" +"\t" + Status.FREE + "\t" + bonus;
	}*/
	
	//覆盖重写方法-员工列表
	public String getListDetails() {
		return getDetails() +"\t" +"设计师" +"\t" + Status.FREE + "\t" + bonus + "\t\t" + getEquipment().getDescription();		
	}
	
	//覆盖重写方法-团队列表
	public String getTeamDetails() {
		return getMemberId() + "/" + getDetails() + "\t设计师" + "\t" + bonus;		
	}

}
